home *** CD-ROM | disk | FTP | other *** search
/ Interactive Web Graphics with Shout 3D / Interactive Web Graphics With Shout 3D.iso / mac / Shout3Ddemo / docs / Shout3d_specification / htmlFiles / grid-billboards.txt < prev    next >
Text File  |  2000-05-30  |  765b  |  61 lines

  1. #VRML V2.0 utf8
  2.  
  3.  
  4. NavigationInfo {
  5.     type "NONE"
  6. }
  7.  
  8.  
  9. Viewpoint {
  10.     position 0 0 2.5
  11.     orientation 0 0 1 0.785
  12.     fieldOfView 2.356    # 3/4 pi
  13. }
  14.  
  15.  
  16. DEF bb Billboard {
  17.     axisOfRotation 0 0 0
  18.     children [
  19.         Shape {
  20.             appearance Appearance {
  21.                 texture ImageTexture {
  22.                     url "images/grid.gif"
  23.                 }
  24.             }
  25.             geometry IndexedFaceSet {
  26.                 coord Coordinate {
  27.                     point [
  28.                          1,  1, 0
  29.                         -1,  1, 0
  30.                         -1, -1, 0
  31.                          1, -1, 0
  32.                     ]
  33.                 }
  34.                 coordIndex [
  35.                     0, 1, 2, 3, 0, -1
  36.                 ]
  37.                 texCoord TextureCoordinate {
  38.                     point [
  39.                         1, 1
  40.                         0, 1
  41.                         0, 0
  42.                         1, 0
  43.                     ]
  44.                 }
  45.             }
  46.         }
  47.     ]
  48. }
  49.  
  50.  
  51. Transform {
  52.     translation  3 0 0
  53.     children USE bb
  54. }
  55.  
  56.  
  57. Transform {
  58.     translation -3 0 0
  59.     children USE bb
  60. }
  61.